<?php
namespace App;
use App\Error\Debugger;
require_once __DIR__."/Error/error-code.php";

function hello() {
    return 'Hey, man~';
}

function xThrow($err = ERR_UNKNOWN, $message = null) {
    $msg = get_error_message($err);
    if ($message) {
        $msg .= ':' . $message;
    }
    throw new Debugger($msg,$err);
}
